<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Rag Hu
 * Created Time: 2019/8/29 15:09
 * Modified Time: 2019/8/29 15:09
 * Version: 2.0
 */

namespace App\Modules\Store\Validators;


class StoreControllerValidator
{
    public static function validator()
    {
        return [
            'createStore' => [
                'name' => [
                    'title' => '店铺名称',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'updateStore' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'createStoreProfile' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'getStoreProfile' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'getStoreInfoApp' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'getStorePaymentCode' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'closeOpenStore' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ],
                'operation' => [
                    'title' => '店铺id',
                    'rule' => 'required|between:0,1',
                    'message' => []
                ],
            ],
            'getStoreInfo' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'likeStore' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ],
                'operation' => [
                    'title' => '操作值',
                    'rule' => 'required|boolean',
                    'message' => []
                ]
            ],
            'getStorePaymentRoyalty' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'updateStorePaymentRoyalty' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'getStoreNameById' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'createStorePhoto' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ],
                'image' => [
                    'title' => '图片id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'deleteStorePhoto' => [
                'store_photo_id' => [
                    'title' => '图片id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'getStorePhoto' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ]
            ],
            'setUserStoreRole' => [
                'store_id' => [
                    'title' => '店铺id',
                    'rule' => 'required',
                    'message' => []
                ],
                'user_id' => [
                    'title' => '用户id',
                    'rule' => 'required',
                    'message' => []
                ],
                'role' => [
                    'title' => 'role',
                    'rule' => 'required',
                    'message' => []
                ],
            ],
        ];
    }
}